﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using TMHuy.config;

namespace TMHuy
{
    class ZoneComparer : IComparer
    {

        int IComparer.Compare(Object x, Object y)
        {
            Zone a = (Zone)x;
            Zone b = (Zone)y;
            if (a.distance == b.distance) return ((new CaseInsensitiveComparer()).Compare(a.x, b.x));
            return ((new CaseInsensitiveComparer()).Compare(a.distance, b.distance));
        }

    }
}
